package com.eagle.posrole.dao.impl;

import java.util.List;

import com.eagle.commons.pub.IBATISDB;
import com.eagle.commons.vo.tbl_PosMenu;
import com.eagle.commons.vo.tbl_RoleQxfp;
import com.eagle.posrole.dao.PMenuDao;
import com.ibatis.sqlmap.client.SqlMapClient;

public class PMenuDaoImpl implements PMenuDao {
	private SqlMapClient sqlMapClient;

	@Override
	public tbl_PosMenu queryByMenuBm(String MenuBm) throws Exception {
		List<tbl_PosMenu> resultList = null;
		tbl_PosMenu posMenu=null;
		resultList = sqlMapClient.queryForList(IBATISDB.creStmId("PosRole_Tbl_PosMenu", "queryByMenuBm"),MenuBm);
		if(resultList.size()>0 && resultList!=null){
			posMenu=resultList.get(0);
		}
		return posMenu;
	}

	public SqlMapClient getSqlMapClient() {
		return sqlMapClient;
	}

	public void setSqlMapClient(SqlMapClient sqlMapClient) {
		this.sqlMapClient = sqlMapClient;
	}

}
